<?php

class System_AdminController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        echo 'asd';
    }

    public function inputprobAction()
    {
        $form = new System_Form_ProblemInput();
        $problem = new System_Model_Problems();
        
        if ($this->_request->isPost()){
            $data = $this->_request->getPost();
            if ($form->isValid($data)){
                var_dump($data); exit();
                $problem = new System_Model_Problems();
                $problem->fill($data);
                
                $problem->save();
            }
        }
        $this->view->form = $form;
    }


}





